{* load lang file *}
{config_load file="lang`$smarty.const.PLANG`.txt" section="dayView"}
{*<a href="{$SERVER_ROOT}{$entry.intime|date_format:'%Y/'}">{$entry.intime|date_format:'%Y'}</a>*}

	<h2 class="arh">Archive for 
    <!-- <a href="{$SERVER_ROOT}">{#home#}</a> -->
	{foreach name=numloop from=$breadCrumbs item=crumb}
      {if not $smarty.foreach.numloop.last}
        <a href="{$SERVER_ROOT}{$crumb.link}">{$crumb.name}</a> /
      {else}
        {$crumb.name}
      {/if}
    {/foreach}
	</h2>

<!-- <h2 class="arh">Archive for {$title}</h2> -->

{foreach from=$data item=entry}

	<!-- start entry: {$entry.id} -->
			<div class="post-{$entry.id} post" style="margin-bottom: 20px;">
				<div class="p-head">
					<h2><a href="{$entry.url|regex_replace:'/\.html/':'/'}" rel="bookmark" title="Permanent Link to {$entry.subject}">{$entry.subject}</a></h2>
					<small class="p-time">
					<strong class="day">{$entry.intime|date_format:'%d'}</strong>
					<strong class="month">{$entry.intime|date_format:'%b'}</strong>
					<strong class="year">{$entry.intime|date_format:'%Y'}</strong>
					</small><br>
				</div>
				<div class="p-con">
					{if $entry.image}<img src="{$SERVER_ROOT}thumb/{$entry.id}/" align="left" hspace="10" vspace="4" alt="Icon" />{/if}
					{$entry.content}
				<div class="clear"></div>
				</div>
				<div class="p-det">
				 <ul>
				   <li class="p-det-com">
				   {if $entry.comments}<span><a href="{$entry.url|regex_replace:'/\.html/':'/'}#comments" title="Comment on {$entry.subject}">{$entry.commentcount}</a></span>{else}<a href="{$entry.url|regex_replace:'/\.html/':'/'}#comments">{#noComments#}</a>{/if}
				   </li>
				   <li class="p-det-tag"></li>
				  </ul>
				</div>
			</div>
	<!-- end entry: {$entry.id} -->

{foreachelse}
	<div class="post-{$entry.id} post" style="margin-bottom: 20px;">
      <h2 class="entryTitle">{#noJoy#}</h2>
      <p>{#noJoyExp#}</p>
	</div>
{/foreach}

{if $smarty.const.ENABLE_PAGERS}
	<div class="nav">
	{* figure out next and previous day links *}
	{math equation="x + y" x=$ts y=86400 assign=skipForward}
	{math equation="x - y" x=$ts y=86400 assign=skipBack}
		<a href="{$SERVER_ROOT}{$skipBack|date_format:"%Y/%m/%d/"}">{#back#}</a> | <a href="{$SERVER_ROOT}{$skipForward|date_format:"%Y/%m/%d/"}">{#forward#}</a>
	</div>
{/if}
